//
//  HomeNewsDetailController.m
//  NewsDemo
//
//  Created by 何欣 on 15/7/10.
//  Copyright (c) 2015年 何欣. All rights reserved.
//

#import "HomeNewsDetailController.h"

@interface HomeNewsDetailController ()

@end

@implementation HomeNewsDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.automaticallyAdjustsScrollViewInsets = NO;
    self.view.backgroundColor = [UIColor whiteColor];
    self.tabBarController.tabBar.hidden = YES;
    [self creatWebView];
}


-(void)creatWebView{
    UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 64, self.view.frame.size.width, self.view.frame.size.height)];
    NSURLRequest *webRequest =  [NSURLRequest requestWithURL:[NSURL URLWithString:_webViewRequestUrl]];
    //适应屏幕大小
    webView.scalesPageToFit = YES;
    [self.view addSubview:webView];
    
    [webView loadRequest:webRequest];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
